package com.glw.sso.platform.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.glw.sso.platform.common.base.BaseEntity;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 系统用户登录日志表
 * </p>
 *
 * @author AutoGenerator
 * @since 2021-11-14
 */
@Getter
@Setter
@TableName("system_login_log")
@ApiModel(value = "LoginLog对象", description = "系统用户登录日志表")
public class LoginLog extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("用户唯一标识")
    private String userId;

    @ApiModelProperty("用户名")
    private String username;

    @ApiModelProperty("姓名")
    private String name;

    @ApiModelProperty("登录ip地址")
    private String loginIp;

    @ApiModelProperty("是否企业微信登录 1: 企业微信扫码登录；2:账号密码；3.其他方式")
    private Boolean loginWay;

    @ApiModelProperty("记录系统标识（登陆那个系统）")
    private String appId;

    @ApiModelProperty("来源 1、公司内部员工")
    private Boolean source;

    @ApiModelProperty("设备信息")
    private String equipment;

    @ApiModelProperty("设备信息")
    private LocalDateTime startTime;

    @ApiModelProperty("设备信息")
    private LocalDateTime endTime;

    @ApiModelProperty("备注")
    private String remark;


}
